<?php

class ChapterSwitchAction extends BaseAction 
{
	public $video_id;
	public $ut;

	public function execute(){
		if (count($this->_errors) > 0)
		{
			return "filter-error";
		}

		if (isset($_REQUEST['edit']))
		{
			return $this->edit_chapter();
		}
	}    

	/**
	 * edit chapter
	 */
	private function edit_chapter()
	{

		$this->setData('vid', $this->video_id);
		$this->setData('type', 'chapter_marking');
		$this->setData('act', 'edit');

		return 'edit';
	}
}
?>


